﻿<%@ Page Title="Frontdesk - Resent user invitation" Language="C#" MasterPageFile="~/Views/Shared/FrontdeskClean.Master"
    Inherits="System.Web.Mvc.ViewPage<Sendz.Domain.User>" %>

<asp:Content ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Resend an invitation to
        <%: Model.Firstname + " " + Model.Lastname %></h2>
    <% if (ViewData["IsExistingUser"] == null)
       { %>
    <p>
        Add a message, below (optional) and then click send to deliver a message to the
        user!</p>
    <% using (Ajax.BeginForm(new AjaxOptions { OnBegin = "onBegin", UpdateTargetId = "wrapper", InsertionMode = InsertionMode.Replace }))
       { %>
    <div class="form-field">
        <div class="form-field-label">
            Message
        </div>
        <div class="form-field-input">
            <%: Html.TextArea("Message", new { rows = 10, cols = 20, @class = "frontdesk" })%>
        </div>
    </div>
    <div class="buttons">
        <%: Html.Hidden("UserKey", Model.UserKey)%>
        <input type="submit" class="button" value="Resend Invitation" title="Resend the invitation email to this user" />
    </div>
    <% } %>
    <% }
       else
       { %>
    <p class="justify">
        This user has already responded to their invitation and is an active user.</p>
    <% }
    %>
</asp:Content>
<asp:Content ContentPlaceHolderID="Sidebar" runat="server">
</asp:Content>
<asp:Content ContentPlaceHolderID="footer" runat="server">
</asp:Content>
